<template>

    <div class="view2History">
        <div class="header">
            <x-icon type="ios-arrow-left"
                    size=""
                    class="icon-white"
                    @click="$router.go(-1)"></x-icon>隐患整改
        </div>
        <div class="historyBox">
            <div class="dele">
                <h1 class="titleH1">隐患总数: 4</h1>
                <ul class="titleUl">
                    <li class="list-item "
                        v-for="(item,index) in list"
                        :key="index"
                        data-type="0">
                        <div class="list-box">
                            <div class="list_Left">
                                <h2>{{item.title}} </h2>
                                <p>{{item.tips}} </p>
                                <h5>
                                    <span>【一般隐患】</span>
                                    <em>【逾期未整改】</em>
                                </h5>
                            </div>
                            <div class="list_Right"
                                 @click="$router.push('./view2Verify')">
                                <img :src="item.imgUrl"
                                     alt="">
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data () {
        return {
            list: [
                {
                    title: 'Chrome更新了',
                    imgUrl: '../../../static/images/index/banner.png',
                    tips: '不再支持Flash视频播放票房暴涨，',
                },
                {
                    title: 'Chrome更新了',
                    imgUrl: '../../../static/images/index/banner.png',
                    tips: '不再支持Flash视频播放票房暴涨，',
                },
                {
                    title: 'Chrome更新了',
                    imgUrl: '../../../static/images/index/banner.png',
                    tips: '不再支持Flash视频播放票房暴涨，',
                },

            ],
            startX: 0,
            endX: 0,
        }
    },
    methods: {

    }
}
</script>
<style lang="less" scoped>
.view2History {
    width: 100%;
    height: 100%;
    .header {
        width: 100%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        position: relative;
        font-size: 18px;
        background: #2269ff;
        color: #fff;
        .vux-x-icon {
            fill: cornsilk;
            position: absolute;
            left: 0;
            top: 5px;
            width: 30px;
            height: 30px;
        }
    }
    .historyBox {
        height: 603px;
        width: 100%;
        background-color: #ebeef2;
        padding-top: 20px;
        .dele {
            overflow: hidden;
            background-color: #fff;
            border-radius: 20px 20px 0 0;
            .titleH1 {
                text-align: right;
                width: 100%;
                height: 40px;
                line-height: 40px;
                padding-right: 20px;
                font-size: 16px;
                color: #2269ff;
                border-bottom: 1px solid #eee;
            }
            .titleUl {
                // float: left;
                .list-item {
                    position: relative;
                    height: 120px;
                    -webkit-transition: all 0.2s;
                    transition: all 0.2s;
                    border-bottom: 1px solid #eee;
                    .list-box {
                        padding: 10px;
                        display: flex;
                        align-items: center;
                        -webkit-box-sizing: border-box;
                        box-sizing: border-box;
                        justify-content: flex-end;
                        position: absolute;
                        top: 0;
                        right: 0;
                        bottom: 0;
                        left: 0;
                        font-size: 0;
                        .list_Left {
                            float: left;
                            width: 220px;
                            height: 120px;
                            padding: 10px 0;
                            h2 {
                                width: 100%;
                                font-size: 16px;
                                margin-top: 14px;
                                color: #333;
                            }
                            p {
                                font-size: 16px;
                                width: 100%;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                white-space: nowrap;
                                margin-top: 14px;
                                color: #999;
                            }
                            h5 {
                                margin-top: 14px;
                                font-size: 16px;
                                width: 100%;
                                span {
                                    color: #ff7333;
                                }
                                em {
                                    color: #ffb400;
                                }
                            }
                        }
                        .list_Right {
                            width: 150px;
                            height: 120px;
                            float: right;
                            padding: 14px 0;
                            img {
                                width: 100%;
                                height: 100%;
                                // border: 1px solid #fff;
                                border-radius: 5px;
                            }
                        }
                    }
                }
                .list-item[data-type='0'] {
                    transform: translate3d(0, 0, 0);
                }
                .list-item[data-type='1'] {
                    transform: translate3d(-100px, 0, 0);
                }
                .list-item:after {
                    content: ' ';
                    position: absolute;
                    left: 20px;
                    bottom: 0;
                    right: 0;
                    height: 1px;
                    color: #ccc;
                    -webkit-transform-origin: 0 100%;
                    transform-origin: 0 100%;
                    -webkit-transform: scaleY(0.5);
                    transform: scaleY(0.5);
                    z-index: 2;
                }
            }
        }
    }
}
</style>

